<html>
<head><meta charset="utf-8"><title>how to run ui tests against wasm target? · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/how.20to.20run.20ui.20tests.20against.20wasm.20target.3F.html">how to run ui tests against wasm target?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="182119818"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/how%20to%20run%20ui%20tests%20against%20wasm%20target%3F/near/182119818" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> David Haig <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/how.20to.20run.20ui.20tests.20against.20wasm.20target.3F.html#182119818">(Nov 28 2019 at 16:05)</a>:</h4>
<p>Hi guys, not sure if this is the right group but Oli recommended that I ask a question on the compiler channel. Does anyone know how to manually run the ui tests against a wasm target build? This is the only documentation I have been able to find about it: <a href="https://rust-lang.github.io/rustc-guide/tests/intro.html#testing-on-emulators" target="_blank" title="https://rust-lang.github.io/rustc-guide/tests/intro.html#testing-on-emulators">https://rust-lang.github.io/rustc-guide/tests/intro.html?#testing-on-emulators</a>.</p>
<p>I am asking because some new unit tests I added are breaking the tests that run against this target on azure. The tests break because I am using async and I was using compiler flags instead of setting the edition:2018 in the test. At least I believe that this is the issue but I cannot confirm it until I can run those tests manually.</p>



<a name="182119910"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/how%20to%20run%20ui%20tests%20against%20wasm%20target%3F/near/182119910" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/how.20to.20run.20ui.20tests.20against.20wasm.20target.3F.html#182119910">(Nov 28 2019 at 16:06)</a>:</h4>
<p>(I renamed your topic)</p>



<a name="182120019"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/how%20to%20run%20ui%20tests%20against%20wasm%20target%3F/near/182120019" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> David Haig <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/how.20to.20run.20ui.20tests.20against.20wasm.20target.3F.html#182120019">(Nov 28 2019 at 16:08)</a>:</h4>
<p>Thanks! This relates to this PR: <a href="https://github.com/rust-lang/rust/pull/66321" target="_blank" title="https://github.com/rust-lang/rust/pull/66321">https://github.com/rust-lang/rust/pull/66321</a></p>



<a name="182120333"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/how%20to%20run%20ui%20tests%20against%20wasm%20target%3F/near/182120333" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/how.20to.20run.20ui.20tests.20against.20wasm.20target.3F.html#182120333">(Nov 28 2019 at 16:13)</a>:</h4>
<p>you might be able to just pass the right <code>--target</code> flag to <code>./x.py test --stage 1 src/test/ui</code></p>



<a name="182120409"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/how%20to%20run%20ui%20tests%20against%20wasm%20target%3F/near/182120409" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/how.20to.20run.20ui.20tests.20against.20wasm.20target.3F.html#182120409">(Nov 28 2019 at 16:14)</a>:</h4>
<p>I know building std for both the host and the wasm target is really easy (as I've had to do it a bunch recently) so I'm hoping this also works</p>



<a name="182120430"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/how%20to%20run%20ui%20tests%20against%20wasm%20target%3F/near/182120430" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/how.20to.20run.20ui.20tests.20against.20wasm.20target.3F.html#182120430">(Nov 28 2019 at 16:15)</a>:</h4>
<p><span class="user-mention" data-user-id="245967">@David Haig</span> I was going to say "this works" for <code>./x.py test --stage 1 src/test/ui --target wasm32-unknown-unknown</code> but I'm getting a lot of F's oops</p>



<a name="182120441"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/how%20to%20run%20ui%20tests%20against%20wasm%20target%3F/near/182120441" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/how.20to.20run.20ui.20tests.20against.20wasm.20target.3F.html#182120441">(Nov 28 2019 at 16:15)</a>:</h4>
<p>curious what it will be, maybe I'm just missing a runtime dependency?</p>



<a name="182120680"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/how%20to%20run%20ui%20tests%20against%20wasm%20target%3F/near/182120680" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/how.20to.20run.20ui.20tests.20against.20wasm.20target.3F.html#182120680">(Nov 28 2019 at 16:18)</a>:</h4>
<div class="codehilite"><pre><span></span>[ERROR compiletest::runtest] fatal error, panic: &quot;no NodeJS binary found (--nodejs)&quot;
</pre></div>



<a name="182120697"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/how%20to%20run%20ui%20tests%20against%20wasm%20target%3F/near/182120697" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/how.20to.20run.20ui.20tests.20against.20wasm.20target.3F.html#182120697">(Nov 28 2019 at 16:19)</a>:</h4>
<p><span class="user-mention" data-user-id="245967">@David Haig</span> yeah so make sure you have node.js installed and then run the command above</p>



<a name="182121041"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/how%20to%20run%20ui%20tests%20against%20wasm%20target%3F/near/182121041" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> David Haig <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/how.20to.20run.20ui.20tests.20against.20wasm.20target.3F.html#182121041">(Nov 28 2019 at 16:24)</a>:</h4>
<p><span class="user-mention" data-user-id="119009">@eddyb</span> Ok I'll give that a go, cheers!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>